// import com.alibaba.druid.sql.ast.SQLName;
// import com.alibaba.druid.sql.dialect.mysql.visitor.MySqlASTVisitor;

#include "MySqlFlashbackStatement.h"
#include "../../../../ast/SQLName.h"
#include "../../visitor/MySqlASTVisitor.h"

void MySqlFlashbackStatement::accept0(MySqlASTVisitor_ptr visitor)
{
  if (visitor->visit(SharedObject(MySqlFlashbackStatement)))
  {
    acceptChild(visitor, name);
    acceptChild(visitor, renameTo);
  }
  visitor->endVisit(SharedObject(MySqlFlashbackStatement));
}

SQLName_ptr MySqlFlashbackStatement::getName()
{
  return name;
}

void MySqlFlashbackStatement::setName(SQLName_ptr x)
{
  if (x != nullptr)
  {
    x->setParent(SharedObject(MySqlFlashbackStatement));
  }
  this->name = x;
}

SQLName_ptr MySqlFlashbackStatement::getRenameTo()
{
  return renameTo;
}

void MySqlFlashbackStatement::setRenameTo(SQLName_ptr x)
{
  if (x != nullptr)
  {
    x->setParent(SharedObject(MySqlFlashbackStatement));
  }
  this->renameTo = x;
}
